﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Axiom.Math;

namespace w4nted
{
    class vektor_util
    {
        public virtual Vector3 TransformVectorToBasis(Matrix3 basis, Vector3 vector)
        {
            Vector3 res = new Vector3();
            res.x = basis.m00 * vector.x + basis.m01 * vector.y + basis.m02 * vector.z;
            res.y = basis.m10 * vector.x + basis.m11 * vector.y + basis.m12 * vector.z;
            res.z = basis.m20 * vector.x + basis.m21 * vector.y + basis.m22 * vector.z;
            return res;
        }

    }
}
